log7

Expectation

Target: On completion of this worksheet you should understand and be able to calculate the expected value for a variable.

Suppose a fair coin is tossed 100 times. How many times would we expect to get a head? Common sense tells us that we would expect to get heads about 50 times. We calculate:

Expected no. of heads = Expectation_files\Expectation_MathML_0.jpg Expectation_files\Expectation_MathML_1.jpg 100.

Expectation_files\Expectation_MathML_2.jpg

We know that we will not get exactly 50 heads but this is the average called the expected value and is written Expectation_files\Expectation_MathML_3.jpg.

1.1  Examples

1. A manufacturing process produces 3% defective items. These items are packed in boxes of 500. How many defective items would you expect?

Expectation_files\Expectation_MathML_4.jpg = 0.03

Expectation_files\Expectation_MathML_5.jpg = 0.03 Expectation_files\Expectation_MathML_6.jpg 500 = 15.

2. A game costs 20p a go. The rules are: throw a fair dice and you win 50p if the score is 3 or more. The game is played 300 times. How much are you likely to win or lose overall and what is the profit or loss per go?

P(win) Expectation_files\Expectation_MathML_7.jpg.

Cost for 300 attempts is 300 Expectation_files\Expectation_MathML_8.jpg 20p Expectation_files\Expectation_MathML_9.jpg £60

Expected number of wins Expectation_files\Expectation_MathML_10.jpg

Expected amount won = 200 Expectation_files\Expectation_MathML_11.jpg 50p = £100

Expected profit Expectation_files\Expectation_MathML_12.jpg £100 - £60 Expectation_files\Expectation_MathML_13.jpg£40.

Profit per go Expectation_files\Expectation_MathML_14.jpgp.

This profit does not depend on the number of times the game is played and we can calculate it by considering the profit per go (loss is shown by negative amount):

Score 1 or 2 3, 4, 5, 6
Probability Expectation_files\Expectation_MathML_15.jpg Expectation_files\Expectation_MathML_16.jpg
Profit Expectation_files\Expectation_MathML_17.jpgp Expectation_files\Expectation_MathML_18.jpgp

If we call the profit X then

Expectation_files\Expectation_MathML_19.jpgp as above.

3. A company manufactures computer parts. After tests a part is classified as A or B or rejected. The probability of classification A is 0.7 and of B is 0.25. The company makes a profit of 60p for an A part, 40p for a B part and a loss of 10p if the part is rejected. Find the expected profit per part.

P(defective) = 1 – 0.7 – 0.25 Expectation_files\Expectation_MathML_20.jpg 0.05.

We will put the information into a table:

Type A B Reject
Probability 0.7 0.25 0.05
Profit 60p 40p Expectation_files\Expectation_MathML_21.jpgp

Let the profit be Expectation_files\Expectation_MathML_22.jpg

Expectation_files\Expectation_MathML_23.jpgp